package com.li.designpattern.nullobject;

public class Test {
	public static void main(String[] args) {
		Customer c1=CustomerFactory.getName("li");
		Customer c2=CustomerFactory.getName("yang");
		Customer c3=CustomerFactory.getName("heh");
		
		System.out.println(c1.getName());
		System.out.println(c2.getName());
		System.out.println(c3.getName());
	}
}
